package com.alibaba.excel.read.metadata;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.excel.metadata.BasicParameter;
import com.alibaba.excel.read.listener.ReadListener;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * Read basic parameter
 *
 * @author Jiaju Zhuang
 **/
@Getter
@Setter
@EqualsAndHashCode
public class ReadBasicParameter extends BasicParameter {// 阅读器的参数
    /**
     * Count the number of added heads when read sheet.
     *
     * <p>
     * 0 - This Sheet has no head ,since the first row are the data
     * <p>
     * 1 - This Sheet has one row head , this is the default
     * <p>
     * 2 - This Sheet has two row head ,since the third row is the data
     */
    // 阅读表格时计算添加的头数。
    // 0 - 此工作表没有头，因为第一行是数据
    // 1 - 此工作表有一个行头，这是默认值
    // 2 - 此工作表有两行标题，因为第三行是数据
    private Integer headRowNumber;
    /**
     * Custom type listener run after default
     */
    // 自定义类型侦听器在默认后运行
    private List<ReadListener<?>> customReadListenerList;

    public ReadBasicParameter() {
        super();
        customReadListenerList = new ArrayList<>();// 自定义类型侦听器，初始化列表
    }
}
